package cn.lls.service.impl;

import cn.lls.entity.sys.RolePermissionEntity;
import cn.lls.dao.RolePermissionDao;
import cn.lls.service.IRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 划水艺术家
 * @since 2022-11-15
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionDao, RolePermissionEntity> implements IRolePermissionService {

    @Override
    public void deleteRP(Long roleId, List<Integer> permissionIds) {
        this.baseMapper.deleteRP(roleId, permissionIds);
    }

    @Override
    public List<Integer> getPermissionIdByRoleId(Long roleId) {
        return this.baseMapper.getPermissionIdByRoleId(roleId);
    }
}
